/*
 * Created on 19-Jul-2004
 *
 * By Mike Anderson
 */
package game.jrogue;

/**
 * @author Mike
 *
 * Animals are wild creatures that can be hunted
 * 
 */
public class Animal {
	public static void init() {
	   Thing t;
	        
	   // base monster template
	   t=Lib.extend("기본 동물", "기본 존재");
	   t.set("IsMonster",0);
	   t.set(RPG.ST_AIMODE,"Evade");
	   t.set("IsHostile",0);
	   t.set("IsAnimal",1);
	   t.set("빈도",50);
	   t.set("IsIntelligent",0);
	   t.set("최소레벨",1);
	   t.set("최대레벨",100);
	   t.set("경험치값",5);
	   Lib.add(t);		
		
	   initWildLife();
	}
	
	public static Thing create(int level) {
		// TODO: make specific for terrain types
		Thing t=Lib.createType("IsAnimal",level);
		return t;
	}
	
	public static void initWildLife() {
		Thing t;
		
        t=Lib.extend("토끼", "기본 동물");
        t.set("IsHostile",0);
        t.set("이미지",285);
        t.set("IsOwned",1);
        t.set("이동속도",140);
        Monster.stats(t,3,2,15,3,1,2,1,1);
        t.set("시체그래픽","piece of rabbit meat");
        Lib.add(t);
        
        t=Lib.extend("산토끼","토끼");
        t.set("이동속도",240);
        Monster.stats(t,3,2,25,3,1,2,1,1);
        t.set("시체그래픽","piece of hare meat");
        Lib.add(t);       
        
        t=Lib.extend("나비", "기본 동물");
        t.set("IsHostile",0);
        t.set("IsBlocking",0);
        t.set("이미지",294);
        t.set("IsItem",1);
        t.set("시체그래픽",null);
        t.set("아이템무게",100);
        Monster.stats(t,1,1,5,1,1,1,1,1);
        Lib.add(t);
        
        t=Lib.extend("달팽이", "기본 동물");
        t.set("IsHostile",0);
        t.set("IsOwned",1);
        t.set("이미지",387);
        t.set("이동속도",40);
        Monster.stats(t,1,1,5,1,1,1,1,1);
        t.set("시체그래픽","slime pool");
        Lib.add(t);  
        
        t=Lib.extend("에스카르고", "기본 동물");
        t.set("IsHostile",0);
        t.set("IsOwned",1);
        t.set("이미지",387);
        t.set("이동속도",40);
        Monster.stats(t,1,1,5,1,1,1,1,1);
        t.set("시체그래픽","escargot steak");
        t.set("아스키코드", "e");
        Lib.add(t);      
        
        t=Lib.extend("민달팽이", "기본 동물");
        t.set("IsHostile",0);
        t.set("이미지",386);
        t.set("이동속도",40);
        Monster.stats(t,1,1,5,1,1,1,1,1);
        t.set("시체그래픽","poison cloud");
        Lib.add(t);          
        
        t=Lib.extend("나방","나비");
        t.set("부패율",1000);
        t.addHandler("OnAction",Scripts.decay());
        Lib.add(t);
	}
}
